package com.example.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @SpringBootApplication=@Configuration + @EnableAutoConfiguration + @ComponentScan
 * 
 * @Configuration,@ComponentScan这俩注解语法是spring框架中的。起步于spring 3.x
 * 
 * @EnableAutoConfiguration是spring boot语法，表示自动配置。
 */
@SpringBootApplication
public class SpringBootDemoApplication {

	public static void main(String[] args) {
		SpringApplication.run(SpringBootDemoApplication.class, args);
//		SpringApplication.run(SpringBootDemoApplication.class, "--server.port=8088");	//指定端口
	}

}
